<?php

namespace app\api\controller\admin;

use app\common\controller\Api;
use app\api\service\admin\InformalTalkService;

class InformalTalk extends Api
{
    protected $noNeedLogin = ['export'];
    protected $noNeedRight = [];
    

    

    /**
     * 查看
     */
    public function index()
    {
        $data = $this->request->post();
        $res = InformalTalkService::index($data);
        return json($res);
    }

    /**
     * 添加
     */
    public function add()
    {
        $data = $this->request->post();
        $res = InformalTalkService::add($data);
        return json($res);
    }

    /**
     * 编辑
     */
    public function edit()
    {
        $data = $this->request->post();
        $res = InformalTalkService::edit($data);
        return json($res);
    }

    /**
     * 支付
     */
    public function payment()
    {
        $data = $this->request->post();
        $res = InformalTalkService::payment($data);
        return json($res);
    }

    /**
     * 记录
     */
    public function record()
    {
        $data = $this->request->post();
        $res = InformalTalkService::record($data);
        return json($res);
    }

    /**
     * 详情
     */
    public function view()
    {
        $data = $this->request->post();
        $res = InformalTalkService::view($data);
        return json($res);
    }

    
}